# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer:
pkgname=py3-pdfkit
pkgver=0.6.1
pkgrel=2
pkgdesc="Python wrapper to convert HTML to PDF using the WebKit rendering engine"
url="https://github.com/JazzCore/python-pdfkit"
license="MIT"
# armhf, mips64 and riscv64 blocked by qt5-qtwebkit -> wkhtmltopdf
arch="noarch !armhf !mips64 !riscv64"
depends="wkhtmltopdf python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/pdfkit/pdfkit-$pkgver.tar.gz"
options="!check" # No testsuite in pypi tarball, no github releases
builddir="$srcdir/pdfkit-$pkgver"

replaces="py-pdfkit" # Backwards compatibility
provides="py-pdfkit=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="b3ac1016d1c01a2a196f567b9b672caca10f564cc6a62122691d34c3cbbf143f6a846bfba26c3474e9c0296977f0d30c0b5af13b3321ab207b787df3cba12e5d  pdfkit-0.6.1.tar.gz"
